Skip to content

Security/step3 dependency hardening - #19

Closed
Alcides1123 wants to merge 5 commits into
vectornguyen76:masterfrom
Alcides1123:security/step3-dependency-hardening
Closed

Alcides1123 wants to merge 5 commits into
vectornguyen76:masterfrom
Alcides1123:security/step3-dependency-hardening

Conversation

@Alcides1123

Copy link
Copy Markdown

fix: implement Step 3 security hardening

  • Upgrade all dependencies to patched versions
    • Flask 2.2.5 → 3.1.3, Werkzeug 2.2.3 → 3.1.9
    • PyJWT 2.6 → 2.15, SQLAlchemy → 2.0.55
    • psycopg2-binary → 2.9.13, marshmallow 3 → 4
  • Split requirements.txt into prod/dev dependencies
  • Add pip-audit to all CI pipelines
  • Fix JWT string substitution bug (PyJWT ≥ 2.10 compatibility)
  • Configure JWT decode algorithms and token location
  • Implement CORS with proper origin validation
  • Add Flask-Limiter rate limiting (5×401→429 on /login, /register)
  • Configure proxy trust settings
  • Harden Dockerfile (non-root user, runtime deps only)
  • All tests passing (30/30 on SQLite & PostgreSQL 16)

Added PowerShell command syntax for windows developers
ENhanced security section with git check-ignore examples, fixed .gitignore rules for .env file handling, expanded environment setup instructions, updated CI/CD workflow documentation, added default account security warnings
…s, Non-admin users caan no longer manage roles/permissions
- Upgrade all dependencies to patched versions
  - Flask 2.2.5 → 3.1.3, Werkzeug 2.2.3 → 3.1.9
  - PyJWT 2.6 → 2.15, SQLAlchemy → 2.0.55
  - psycopg2-binary → 2.9.13, marshmallow 3 → 4
- Split requirements.txt into prod/dev dependencies
- Add pip-audit to all CI pipelines
- Fix JWT string substitution bug (PyJWT ≥ 2.10 compatibility)
- Configure JWT decode algorithms and token location
- Implement CORS with proper origin validation
- Add Flask-Limiter rate limiting (5×401→429 on /login, /register)
- Configure proxy trust settings
- Harden Dockerfile (non-root user, runtime deps only)
- All tests passing (30/30 on SQLite & PostgreSQL 16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant